<?php

class modelProfession {

    public $_id;
    public $name;
    public $image;

    public function deserialize($query) {
        $query = (object) $query;
        $this->_id = $query->_id;
        $this->name = htmlentities($query->name, ENT_QUOTES, 'UTF-8');
        //$this->image = htmlentities($query->image, ENT_QUOTES, 'UTF-8');
        return $this;
    }

}

?>
